package com.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.model.dto.CartDTO;
import com.example.model.dto.Result;
import com.example.model.dto.UpdateCartDTO;
import com.example.model.entity.Cart;

import javax.servlet.http.HttpServletRequest;

/**
 * @program: backend
 * @author: zk
 * @create: 2023-04-22 13:43
 **/
public interface ICartService extends IService<Cart> {
    Result getCarts(HttpServletRequest request);

    Result addCart(CartDTO cartDTO,HttpServletRequest request);

    Result deleteCart(Long productId,HttpServletRequest request);

    Result selectAll(HttpServletRequest request);

    Result unSelectAll(HttpServletRequest request);

    Result getProductCount(HttpServletRequest request);

    Result updateCart(UpdateCartDTO updateCartDTO,HttpServletRequest request);
}
